package com.chagee.store.operation.server.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author yhl
 * @version 1.0
 * @className DemoTask
 * @description 任务
 * @date 2023/12/25 13:30:42
 */
@Component
@RequiredArgsConstructor
@Slf4j
public class DemoTask {

	public static final ReturnT SUCCESS = new ReturnT("");

	@XxlJob("testjob")
	public ReturnT<String> test(String param) {
		log.info("11111111111111执行完成");
		return SUCCESS;
	}
}
